import request from '@/utils/request'

export const getFirstCatalog = () => {//获取所有版本列表
  return request<any,AxiosResponse,any>({
    url: '/api/v1/categories',
    method: 'get',
  })
}

export const getSecondCatalog = (params:any) => {//获取第二次目录
  return request<any,AxiosResponse,any>({
    url: '/api/v1/item',
    method: 'get',
    params
  })
}

export const getUrlSign = (data:any) => {//获取链接前面
  return request<any,AxiosResponse,any>({
    url: '/api/v1/signurl',
    method: 'post',
    data
  })
}